package com.zhj.test.netty.dubborpc.customer;

import com.zhj.test.netty.dubborpc.common.RPCService;
import com.zhj.test.netty.dubborpc.netty.NettyClient;

/**
 * 启动服务的提供者
 * @author zhj
 */
public class ClientBootstrap {

    public static final String providerName = "RPC-Dubbo-Hello#zhj#";

    public static void main(String[] args) {
        NettyClient customer = new NettyClient();
        // 创建代理对象
        RPCService service = (RPCService) customer.getBean(RPCService.class, providerName);
        String msg = service.hello("hello dubbo~");
        System.out.println("客户端发送：" + msg);
    }
}
